package com.jadesoft.common.web;

import com.jadesoft.common.web.impl.JSONResponseRenderer;

public class ResponseRenderFactory {
	public static String JSON = "json";
	public static String EXCEL = "excel";
	public static String PDF = "pdf";

	/**
	 * Return ResponseRenderer based on request format.
	 * 
	 * @param format
	 *            result format,can be json, excel and so on
	 * @return return an IResponseRenderer instance
	 */
	public static IResponseRenderer getRenderer(String format) {
		return new JSONResponseRenderer();
	}
}
